<?php
class InstallController extends CController
{

    public $layout = 'install';
    public $data = array();
    public $connection = null;

    public function init(){
        $this->initDatabase();
        $this->initData();
    }

    private function initDatabase(){
        $this->connection= Yii::app()->db;
    }

    private function initData(){
        $session=new CHttpSession;
        $session->open();
        foreach($session as $name=>$value){
            $this->data[$name] = $value;
        }
    }

}